<?php



class CmsMemberAddressMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.CmsMemberAddressMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('cms_member_address');
		$tMap->setPhpName('CmsMemberAddress');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ADDRESS_ID', 'AddressId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('MEMBER_ID', 'MemberId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('COUNTRY', 'Country', 'string', CreoleTypes::VARCHAR, true, 100);

		$tMap->addColumn('CITY', 'City', 'string', CreoleTypes::VARCHAR, true, 100);

		$tMap->addColumn('ADDRESS1', 'Address1', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('ADDRESS2', 'Address2', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('STATE', 'State', 'string', CreoleTypes::VARCHAR, true, 30);

		$tMap->addColumn('POSTCODE', 'Postcode', 'string', CreoleTypes::VARCHAR, true, 30);

		$tMap->addColumn('PRIMARY_ADDRESS', 'PrimaryAddress', 'string', CreoleTypes::VARCHAR, true, 1);

		$tMap->addColumn('CREATED_BY', 'CreatedBy', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('CREATED_ON', 'CreatedOn', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('UPDATED_BY', 'UpdatedBy', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('UPDATED_ON', 'UpdatedOn', 'int', CreoleTypes::TIMESTAMP, true, null);

	} 
} 